package com.PAT.UnSatisfying;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/11/15/14:37
 * @Description:
 * @Target:换个格式输出整数
 */
public class NewMethodOutInt {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();

        int[] ints = NewMethod(N);

        for (int i = 0; i < ints[0]; i++) {
            if(ints[0]==0){
                break;
            }
            System.out.print("B");
        }

        for (int i = 0; i < ints[1]; i++) {
            if(ints[1]==0){
                break;
            }
            System.out.print("S");
        }

        for (int i = 1;i <= ints[2];i++){
            if(ints[2]==0){
                break;
            }
            System.out.print(i);
        }


    }


    public static int[] NewMethod(int N){

        int[] arr = new int[3];

        int baiBit = N>100?(N/100):0;
        int shiBit = N>10?((N/10)%10):0;
        int geBit = 0;
        if(N > 10) {
            geBit = N % 10;
        }else{
            geBit = N;
        }

        arr[0]=baiBit;
        arr[1]=shiBit;
        arr[2]=geBit;

        return arr;

    }




}
